<%@ page import="cn.school.mybatis.pojo.Admin" %><%--
  Created by IntelliJ IDEA.
  User: zhaoyang
  Date: 2020/8/6
  Time: 10:51 上午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>


<%
    Admin checkLoginName = (Admin) session.getAttribute("USER_LOGIN");
    if (checkLoginName == null) {
%>
<script>
    if (confirm("请登录账号！")) {
        location.replace("<%=request.getContextPath()%>/AdminLTEdemo01/s_login/login.jsp");
    } else {
        location.replace("<%=request.getContextPath()%>/AdminLTEdemo01/s_login/loginFail.jsp");
    }
</script>

<%
}
//else {
%>
<%--<script>--%>
<%--    location.replace("<%=request.getContextPath()%>/AdminLTEdemo01/index.jsp")--%>
<%--    history.back();--%>
<%--</script>--%>
<%--<%--%>
<%--    }--%>
<%--%>--%>


